<style lang="scss" scoped></style>

<template>
  <div>
    <a-image-preview :src="src" v-model:visible="visible" />
    <div @click="visible = true">
      <slot>
        <img :class="innerClass" :src="src" />
      </slot>
    </div>
  </div>
</template>

<script lang="ts" setup>
const props = defineProps<{ src: string; innerClass?: string }>()
const visible = ref(false)
</script>
